﻿
namespace StagingAreaETL
{
    class LibraryAccountDIM
    {
        /// <param name="natKey">Natural primary key which will be simply carried over to ODS</param>
        /// <param name="creationTimeKey">Creation time in TimeKEY format</param>
        /// <param name="active">FALSE means the account will never be active anymore</param>
        internal LibraryAccountDIM(int natKey, string creationTimeKey, bool active)
        {
            NaturalKEY = natKey;
            StudentSurrogateKEY = -1;           //A mark to recognize accounts of not registered persons (not students)
            CreationTimeKEY = creationTimeKey;
            Active = active;
        }

        internal readonly int NaturalKEY;
        internal int StudentSurrogateKEY { get; set; }          //field 'StudentKEY'. To be assigned after
                                                                //corresponding Student record has been saved.
        internal string CreationTimeKEY;
        internal bool Active;
    }
}
